# @Author   :   hany
# @Time      :  2021/4/8
from basic.device.Android import Android
from airtest.core.api import *

class taxPage(Android):

    # 推荐应用-智慧税务
    taxBtn = "com.cloudbae.lovenanning:id/tvQrCodeTitle"
    #首页
    IndexBtn= "com.cloudbae.lovenanning:id/icon"

    @classmethod
    def clickTaxBtn(self):
        self.poco(self.IndexBtn)[1].click()
        self.poco(self.taxBtn, text="智慧税务").click()
        print("点击智慧税务")
        sleep(6)

    @classmethod
    def getName(self):
        consult = self.poco(text="咨询辅导").wait(30)
        if consult.exists():
            return True
